using System;
using System.Web.UI;
using SchoolEPortal;

public partial class Controls_CT_ViewMarkByClass : UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["viewid"] != null)
        {
            string id = Request.QueryString["viewid"].Trim();
            wsMark mark = new wsMark();
            GridView1.DataSource = mark.getAllPupilMark(id);
            GridView1.DataBind();
        }
    }
}